home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork2.lzh
/
サンプル基礎編
/
ラジオボタン
/
RADIO.H
< prev
Wrap
Text File
|
1994-03-10
|
2KB
|
60 lines
/******************************************************************************
* radio.h: radio.c用ヘッダファイル
******************************************************************************
* Workroom SX-68K Sample Program Copyright 1994 SHARP
*
* 定数定義
*/
/* ウィンドウタイトル */
#define WINTITLE ((_LASCII) "\x0cラジオボタン")
/* ウィンドウサイズ */
#define WIN_H 230 /* ウィンドウの幅 */
#define WIN_V 80 /* ウィンドウの高さ */
/* ラジオボタンのタイトル表示位置 */
#define TTL1_X 58 /* ラジオボタン1のX座標 */
#define TTL1_Y 20 /* 〃 Y座標 */
#define TTL2_X (TTL1_X + 80) /* ラジオボタン2のX座標 */
#define TTL2_Y TTL1_Y /* 〃 Y座標 */
/* ラジオボタンの表示位置 */
#define RAD1_X (TTL1_X + 2) /* ラジオボタン1のX座標 */
#define RAD1_Y (TTL1_Y + 16) /* 〃 Y座標 */
#define RAD2_X (TTL2_X + 2) /* ラジオボタン2のX座標 */
#define RAD2_Y RAD1_Y /* 〃 Y座標 */
/* イベントマスク */
#define EVENTMASK (EM_MSLDOWN | EM_UPDATE | EM_ACTIVATE | EM_SYSTEM1 | EM_SYSTEM2)
/*
* 構造体宣言
*/
typedef struct ComVal { /* 共通変数 */
Window *windowPtr; /* ウィンドウポインタ */
BOOLEAN activeFlag; /* アクティブフラグ */
TsEvent event; /* イベントレコード */
int eventMask; /* イベントマスク */
int errorCode; /* エラーコード */
BOOLEAN endFlag; /* 終了フラグ */
/* ラジオボタン1のコントロールハンドル */
Control **radBtn1Hdl;
/* ラジオボタン2のコントロールハンドル */
Control **radBtn2Hdl;
} ComVal;
/*
* 関数プロトタイプ
*/
/* radio.c */
BOOLEAN init(ComVal *);
BOOLEAN createWindow(ComVal *);
BOOLEAN createControl(ComVal *); /* ラジオボタンの作成 */
void msLDownEvent(ComVal *);
void checkControl(ComVal *); /* ラジオボタンの状態チェック */
void keyDownEvent(ComVal *);
void updateEvent(ComVal *);
void drawGraph(ComVal *);
void activateEvent(ComVal *);
void systemEvent(ComVal *);
void showErrDialog(ComVal *);
void endProc(int, ComVal *);